<?php if(!$isLogin) { ?>
<div class="block">
	<div id="indexLogin" class="login">
		<div class="itop"></div>
		<div class="center">
			<div class="cont clr">
				<form autocomplete="off" action="/login/" method="POST">
					<div class="unme cnt-i clr">
						<label for="email"></label><i>邮箱</i><input type="text"
							autocomplete="off" placeholder="邮箱" name="email" id="email">
					</div>
					<div class="pswd cnt-i clr">
						<label for="password"></label><i>密码</i><input type="password"
							autocomplete="off" placeholder="密码" name="password" id="password">
					</div>
					<div class="submit clr">
						<a href="javascript:;" class="abtn l"><button type="submit"
								id="loginbtn">
								<u>登陆</u>
							</button></a>
						<div class="u-chk clr">
							<a href="/register/">注册</a>
						</div>
					</div>
				</form>
				<div class="sites">
					<p>使用合作网站帐号登陆：</p>
					<a href="/login/sina/" class="weibo">新浪微博</a> <a href="/login/qq/"
						class="qqsite">QQ</a> <a href="/login/qweibo/" class="qqweib">腾讯微博</a>
					<a href="/login/douban/" class="douban">豆瓣</a>
				</div>
			</div>
		</div>
		<div class="bottom"></div>
	</div>
</div>
<?php }else{ ?>
<div class="block">
	<div id="indexLogin" class="login">
		<div class="itop"></div>
		<div class="center">
			<div class="cont">
				<div class="inner clr">
					<a href="/user/<?php echo $UserInfo ['User'] ['uid']?>/"><img
						width="48" height="48" src="/img/dfhead.gif"
						alt="<?php echo $UserInfo ['User'] ['nickname']?>" /></a>
					<p>
						<a href="/user/<?php echo $UserInfo ['User'] ['uid']?>/"> <?php echo $UserInfo ['User'] ['nickname']?>
						</a><span>欢迎回到堆糖！</span>
					</p>
				</div>
				<a class="in-f clr" href="/user/"><span>关注动态</span><i></i></a>
			</div>
		</div>
		<div class="bottom"></div>
	</div>
</div>
<? } ?>